<?php
/**
{
    "hotLeftId": "INT //ID",
    "img": "VARCHAR //图片建议<br>宽232×高261@image",
    "weight": "INT //权重（显示最大）@noLoad",
    "status": "TINYINT //状态@status; 3::有效; 88::删除; ",
    "url": "VARCHAR //链接地址",
    "onlineTime": "DATETIME //上线时间",
    "offlineTime": "DATETIME //下线时间"
}
 */

class HotLeft extends Base
{
    
	private $hotLeftId= '';//ID
	private $img= NULL;//图片建议<br>宽232×高261@image
	private $weight= "0";//权重（显示最大）@noLoad
	private $status= "3";//状态@status;3::有效;88::删除;
	private $url= NULL;//链接地址
	private $onlineTime= 'CURRENT_TIMESTAMP';//上线时间
	private $offlineTime= NULL;//下线时间

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_hot_left';
    }
    
    public  function key(){
        return 'hotLeftId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'weight',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'HotLeft';
    }
    
    public  function field()
    {
        return array (  'hotLeftId' =>   array (    0 => 'INT',    1 => 11,    2 => 'ID',  ),  'img' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '图片建议<br>宽232×高261@image',  ),  'weight' =>   array (    0 => 'INT',    1 => 11,    2 => '权重（显示最大）@noLoad',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 11,    2 => '状态@status;3::有效;88::删除;',  ),  'url' =>   array (    0 => 'VARCHAR',    1 => 1024,    2 => '链接地址',  ),  'onlineTime' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '上线时间',  ),  'offlineTime' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '下线时间',  ),);
    }


}